package com.ruoyi.web.controller.AdminHome;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.system.domain.vo.AdminHomeVO;
import com.ruoyi.system.service.AdminHomeService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "数据统计")
@RestController
@RequestMapping("/admin/home")
public class AdminHome {
    @Autowired
    private AdminHomeService adminHomeService;

    @GetMapping("select")
    public AjaxResult AdminHomeSelect(){
      AdminHomeVO SadminHomeVO = adminHomeService.SelectArticleoAll();
      return AjaxResult.success(SadminHomeVO);


    }
}
